/*
 * Copyright (c) 2017. 深圳一七科技. All rights reserved.
 */

package com.yiqi.liebang.feature.mine.contract;

import com.suozhang.framework.entity.bo.PageData;
import com.suozhang.framework.framework.BasePresenter;
import com.suozhang.framework.framework.BaseView;
import com.yiqi.liebang.entity.bo.CouponBo;
import com.yiqi.liebang.entity.bo.PageBo;
import com.yiqi.liebang.entity.bo.WorkBo;

import java.util.List;

import io.reactivex.Observable;

/**
 * LIJUWEN
 *
 * @email yiyayiyayaoljw@gmail.com
 * @date 2018/7/11 9:06
 */
public interface CouponContract {

    interface Model {


        Observable<List<CouponBo>> getCoupon(PageBo workBo);

    }

    interface View extends BaseView {


        void showCouponSuccess(List<CouponBo> workBoPageData);

        void showCouponError(String error);

        void showCouponMoreSuccess(List<CouponBo> msg);

        void showCouponMoreError(String msg);

        void showCouponEmpty();
    }


    interface Presenter extends BasePresenter {

        void getCoupon(
                int type,
                int pageIndex,
                int pageSize,
                String mLabelsStr
        );
        void getCouponMore(
                int type,
                int pageIndex,
                int pageSize,
                String mLabelsStr
        );
    }
}
